package com.jic.weamop.api;

import com.jic.common.base.vo.RestResult;
import com.jic.weamop.request.ChannelResponseApi;
import com.jic.weamop.request.MessageRequestApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: 调用amop测试类
 */
@FeignClient(name = "jic-weamop", path = "/rest")
public interface WeAMOPApi {

    /**
     * description: 消息发送接口
     *
     * @author: tzc
     * @time: 2020/8/8 14
     */
    @PostMapping("/sendMessage")
    RestResult<ChannelResponseApi> sendMessage(@RequestBody MessageRequestApi messageRequestApi);


    /**
     * description: 测试连通性
     *
     * @author: tzc
     * @time: 2020年11月24日20:47:58
     */
    @PostMapping("/test2")
    String test(@RequestBody MessageRequestApi messageRequestApi);


}
